/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jili.ubert.code.client2server;

import com.baidu.bjf.remoting.protobuf.Codec;
import com.baidu.bjf.remoting.protobuf.FieldType;
import com.baidu.bjf.remoting.protobuf.ProtobufProxy;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import java.io.IOException;

/**
 *
 * @author ChengJiLi
 */
public class Logout {
    @Protobuf(fieldType = FieldType.STRING, order=1, required = false)
    public String userID;
    public void setUserID(String userID){
        this.userID=userID;
    }
    public String getUserID(){
        return this.userID;
    }
    public byte[] EnCode(Logout msg) throws IOException{
        Codec<Logout> Lcode = ProtobufProxy.create(Logout.class);
        return Lcode.encode(msg);
    }
    public Logout DeCode(byte[] data) throws IOException{
        Codec<Logout> Lcode = ProtobufProxy.create(Logout.class);
        return Lcode.decode(data);
        
    }
}
